<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>所有主题</title>
</head>
<body>
{% extends "learning_logs/base.html" %}

{% block header %}
    <h1>Topics</h1>
{% endblock header %}

{% block content %}
    <p>主题</p>

    <ul>
        {% for topic in topics %}
            <li>
                <h3>
                    <a href="{% url 'll:topic' topic.id %}">{{ topic.text }}</a>
                </h3>

            </li>

        {% empty %}
            没有主题

        {% endfor %}

    </ul>

    <h3>
        <a href="{% url 'll:new_topic' %}">新建主题</a>
    </h3>


{% endblock content %}
</body>
</html>